package com.tulingxueyuan.stock.service.impl;

import com.tulingxueyuan.stock.mapper.StockMapper;
import com.tulingxueyuan.stock.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author li
 * @Date 2025/4/26 18:01
 * @description: TODO
 */
@Service
public class StockServiceImpl implements StockService {

    @Autowired
    private StockMapper stockMapper;

    @Override
    public void reduce(Long productId) {
        System.out.println("更新商品：" + productId);
        stockMapper.reduce(productId);
    }
}
